<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>JSZip Testing</title>
<link media="screen" href="//code.jquery.com/qunit/qunit-1.23.0.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="//code.jquery.com/qunit/qunit-1.23.0.js"></script>
<script>
// no CDN, fallback on the npm version
if(!window.QUnit) {
   document.write('<link media="screen" href="../node_modules/qunitjs/qunit/qunit.css" type="text/css" rel="stylesheet">');
   document.write('<script type="text/javascript" src="../node_modules/qunitjs/qunit/qunit.js"><\/script>');
}
</script>

<script type="text/javascript" src="helpers/test-utils.js"></script>
<script type="text/javascript" src="helpers/browser-test-utils.js"></script>

<script type="text/javascript" src="../dist/jszip.js"></script>

<script type="text/javascript">
   QUnit.config.urlConfig.push({
      id : "complexfiles",
      label : "Load complex files",
      tooltip : "Loading complex files can be (very) slow but useful to test real-world zip files"
   });

   // see https://github.com/axemclion/grunt-saucelabs#test-result-details-with-qunit
   var log = [];
   var testName;

   QUnit.done(function (test_results) {
   var tests = [];
   for(var i = 0, len = log.length; i < len; i++) {
      var details = log[i];
      tests.push({
         name: details.name,
         message: details.message,
         module: details.module,
         result: details.result,
         expected: details.expected,
         actual: details.actual,
         source: details.source
      });
   }
   test_results.tests = tests;

   window.global_test_results = test_results;
   });

   QUnit.log(function (details) {
       if (!details.result) {
           log.push(details);
       }
   });
</script>

<script type="text/javascript" src="//stuk.github.io/jszip-utils/dist/jszip-utils.js"></script>
<!--
Mandatory in IE 6, 7, 8 and 9.
-->
<!--[if IE]>
<script type="text/javascript" src="//stuk.github.io/jszip-utils/dist/jszip-utils-ie.js"></script>
<![endif]-->

<script>
// no CDN, fallback on the npm version
if(!window.JSZipUtils) {
   document.write('<script type="text/javascript" src="../node_modules/jszip-utils/dist/jszip-utils.js"><\/script>');
   document.write('<!--[if IE]><script type="text/javascript" src="../node_modules/jszip-utils/dist/jszip-utils-ie.js"><\/script><![endif]-->');
}
</script>

<script type="text/javascript" src="asserts/constructor.js"></script>
<script type="text/javascript" src="asserts/version.js"></script>
<script type="text/javascript" src="asserts/delete.js"></script>
<script type="text/javascript" src="asserts/deprecated.js"></script>
<script type="text/javascript" src="asserts/external.js"></script>
<script type="text/javascript" src="asserts/file.js"></script>
<script type="text/javascript" src="asserts/filter.js"></script>
<script type="text/javascript" src="asserts/foreach.js"></script>
<script type="text/javascript" src="asserts/generate.js"></script>
<script type="text/javascript" src="asserts/load.js"></script>
<script type="text/javascript" src="asserts/permissions.js"></script>
<script type="text/javascript" src="asserts/stream.js"></script>
<script type="text/javascript" src="asserts/unicode.js"></script>



</head>
<body>
   <div id="qunit"></div>
   <div id="qunit-fixture"></div>
</body>
</html>
